package com.suse.ecommerce.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Order implements Serializable {
    private String orderId;

    private Integer status;

    private Date createTime;

    private Long totalPrice;

    private Integer totalNum;

    private Long payment;

    private String payment_type;

    private Long discount;

    private Date paymentTime;

    private Date consignTime;

    private Date receiveTime;

    private Date endTime;

    private Date closeTime;

    private Integer userId;

    private Long addressId;

    private List<OrderProduct> orderProducts;

    private static final long serialVersionUID = 1L;

    public List<OrderProduct> getOrderProducts() {
        return orderProducts;
    }

    public void setOrderProducts(List<OrderProduct> orderProducts) {
        this.orderProducts = orderProducts;
    }

    public Order(String orderId, Integer status, Date createTime, Long totalPrice, Integer totalNum, Long payment, String payment_type, Long discount, Date paymentTime, Date consignTime, Date receiveTime, Date endTime, Date closeTime, Integer userId, Long addressId) {
        this.orderId = orderId;
        this.status = status;
        this.createTime = createTime;
        this.totalPrice = totalPrice;
        this.totalNum = totalNum;
        this.payment = payment;
        this.payment_type = payment_type;
        this.discount = discount;
        this.paymentTime = paymentTime;
        this.consignTime = consignTime;
        this.receiveTime = receiveTime;
        this.endTime = endTime;
        this.closeTime = closeTime;
        this.userId = userId;
        this.addressId = addressId;
    }

    public Order() {
        super();
    }



    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Long totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Integer getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(Integer totalNum) {
        this.totalNum = totalNum;
    }

    public Long getPayment() {
        return payment;
    }

    public void setPayment(Long payment) {
        this.payment = payment;
    }

    public String getPayment_type() {
        return payment_type;
    }

    public void setPayment_type(String payment_type) {
        this.payment_type = payment_type == null ? null : payment_type.trim();
    }

    public Long getDiscount() {
        return discount;
    }

    public void setDiscount(Long discount) {
        this.discount = discount;
    }

    public Date getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(Date paymentTime) {
        this.paymentTime = paymentTime;
    }

    public Date getConsignTime() {
        return consignTime;
    }

    public void setConsignTime(Date consignTime) {
        this.consignTime = consignTime;
    }

    public Date getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getCloseTime() {
        return closeTime;
    }

    public void setCloseTime(Date closeTime) {
        this.closeTime = closeTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }
}